C# auto highlight text in a textbox control Anonymous User258113-Nov-2013How do you auto highlight text in a textbox control when the control gains focus?c#c# Updated on 13-Nov-2013
Anonymous User
13-Nov-2013In Windows Forms and WPF:
textbox.SelectionStart = 0;
textbox.SelectionLength = textbox.Text.Length;
Hope this will solve your problem.